package xzl.edu.cn.set;

public class Fan {
	private String name;
	private String color;
	private int speed;
	private boolean on;
	private double radius;

	public String getName() {
		return name;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public boolean isOn() {
		return on;
	}

	public void setOn(boolean on) {
		this.on = on;
	}

	public double getRadius() {
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public void setName(String name) {
		this.name = name;
	}
    public String toString() {
    	return "名字: "+name+"颜色："+color+"速度："+speed+"开关："+on+"里程："+radius;
    }
}
